using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SelectedComplete : MonoBehaviour
{
    // Start is called before the first frame update
    public void Init(Func<Dictionary<string,string>>getPaths,LoadingView loadingView)
    {
        GetComponent<Button>().onClick.AddListener(()=>
        {
            //loading view
            loadingView.SetActiveState(true);
            //这里最好使用枚举防止出错
            AssetPackerMgr.Instance.GettatorNameAltas("Test",getPaths(),()=>loadingView.SwitchScene(SceneName.Game.ToString()));
            ;//switch scene
        });
    }
}
public enum SceneName{
    SelectView,
    Game
}
